package com.tc.controller;

import com.tc.mapper.RoleMapper;
import com.tc.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: tianchao
 * @Date: 2020/4/14 14:36
 * @Description:
 */
@RestController
@RequestMapping("/role")
public class RoleController {

    /*@Autowired
    private RoleMapper roleMapper;

    @RequestMapping("/{id}")
    public ResponseEntity<Role> getRoleById(@PathVariable("id") Long id){
        Role role = roleMapper.selectByPrimaryKey(id);
        return ResponseEntity.ok(role);
    }*/
}
